lcBlockAddDimAng2 LiteCAD API

Adds a new angular dimension object into a block.

 HANDLE lcBlockAddDimAng2 (
   HANDLE hBlock,
   double X1,
   double Y1,
   double X2,
   double Y2,
   double X3,
   double Y3,
   double X4,
   double Y4,
   double Xa,
   double Ya,
   double TextPos,
   LPCWSTR szText
 );

Parameters
hBlock
  Handle to a block.
X1 Y1
  Start point of the 1st line.
X2 Y2
  End point of the 1st line.
X3 Y3
  Start point of the 2nd line.
X4 Y4
  End point of the 2nd line.
Xa Ya
  Point on the dimension arc. It determines the quadrant, angle and radius of the dimension arc.
TextPos
  Text position, relative to the dimension arc. The range 0-1 means position along the dimension arc, from start arrow to end arrow. In order to place text on the arc's center, specify 0.5 . Value <0 and >1 means the text will be placed outside of the dimension arc, along the tangent line, before start arrow or after end arrow.
szText
  User-supplied dimension text.
If no text is to appear, supply "." .
If only the default text is to appear, supply an empty string "".
The default text is represented as "<>" within the supplied text.

Return Value

  Handle to created angular dimension object or NULL if the function fails.

See Also

  Dimension style,   Code sample